

#ifndef _SHELL_RESRECEIVEMAILS_MESSAGE_H_
#define _SHELL_RESRECEIVEMAILS_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include <vector>
//#include "MailBean.h"
using namespace std;

class ResReceiveMailsMessage : public Message
{
	public:
	ResReceiveMailsMessage();
	~ResReceiveMailsMessage();
	void reset();
	ResReceiveMailsMessage* clone();
	static const int _ID;
	//变化的单个邮件1.添加。2修改。3删除
	int8 type;
	//玩家收到邮件
	vector<MailBean*> mailBeans;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
